/*
 * Copyright 2008 Federal Emergency Management Agency
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0 
 *    
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and 
 * limitations under the License. 
 *  
 */
package gov.fema.hazus.bdc.server.dto;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class DTO_WindBuildingDesign extends DTO_AbstractPersistentEntity {

	private static final long serialVersionUID = -799692596344015638L;
	
	@Persistent private String designCode;
	@Persistent private Integer designYear;
	@Persistent private Integer designWindSpeed;
	@Persistent private String windSpeedType;
	
	// constants
	public static final String DESIGNCODE = "design code";
	public static final String DESIGNYEAR = "design year";
	public static final String DESIGNWINDSPEED = "design wind speed";
	public static final String WINDSPEEDTYPE = "wind speed type";
	
	public DTO_WindBuildingDesign()
	{
		
	}

	public String getDesignCode() {
		return designCode;
	}



	public void setDesignCode(String designCode) {
		this.designCode = designCode;
	}



	public Integer getDesignWindSpeed() {
		return designWindSpeed;
	}



	public void setDesignWindSpeed(Integer designWindSpeed) {
		this.designWindSpeed = designWindSpeed;
	}



	public Integer getDesignYear() {
		return designYear;
	}



	public void setDesignYear(Integer designYear) {
		this.designYear = designYear;
	}



	public String getWindSpeedType() {
		return windSpeedType;
	}



	public void setWindSpeedType(String windSpeedType) {
		this.windSpeedType = windSpeedType;
	}



	public String toString()
	{
		String str = "";
		str += "[wind-building-design";
		str += "[design-code="+this.designCode+"]";
		str += "[design-year="+this.designYear+"]";
		str += "[design-wind-speed="+this.designWindSpeed+"]";
		str += "[wind-speed-type="+this.windSpeedType+"]";
		str += "]";
		return str;
	}
}
